
public abstract class Contact {
	
	protected String name;
	protected String phoneNumber;
	protected String email;
	
	
	public Contact(){
		name="unknown";
		phoneNumber="unknown";
		email="unknown";
	}
	public Contact(String Aname, String number, String aEmail){
		name=Aname;
		phoneNumber=number;
		email=aEmail;
	}
	
	//accessors
	public String getName(){
		return name;
	}
	public String getPhoneNumber(){
		return phoneNumber;
	}
	public String getEmail(){
		return email;
	}
	//mutators
	public void setName(String aName){
		name=aName;
	}
	public void setPhoneNumber(String aNumber){
		phoneNumber=aNumber;
	}
	public void setEmail(String aEmail){
		email=aEmail;
	}
	//defined in the subclasses so specific information can be printed
	public abstract void printInfo();
	
	

}
